package com.wjyf.reducing_bento.scheduling;


import com.wjyf.reducing_bento.service.CouponService;
import lombok.extern.log4j.Log4j2;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author: lrk
 * @Date: 2023/3/18 下午 1:56
 * @Description:
 */
//@Component
@Log4j2
public class CouponScheduling {

    @Resource
    private CouponService couponService;

    @Scheduled(cron = "0 0 0 * * ?")
    public void run(){
        log.info("**************1.开始定时器开始执行定时器任务**************");


        log.info("**************2.开始定时器执行定时器任务结束**************");
    }

}
